package com.demo2do.fms.queue.dao.order;

import java.util.List;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.demo2do.fms.entity.vam.OperationType;
import com.demo2do.fms.entity.vam.RemoteDispatchOrder;

/**
 *
 * @author Ark
 *
 */
@Dao("hibernate")
public interface RemoteDispatchOrderDao {

    /**
     * @param type
     * @return
     */
    @Query("FROM RemoteDispatchOrder WHERE disabled = false AND type = :type")
    public List<RemoteDispatchOrder> list(@Variable("type") OperationType type);
    
}
